/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test1.library.command;

import java.io.IOException;
import java.util.List;

/**
 *
 * @author admin
 */
public class commands {
    public void commands() throws IOException 
    {
        System.out.println("Commands:");
		CommandsSingleton commands = CommandsSingleton.getInstance();
		List<ICommand> listCommand = commands.getCommands();
		int i=1;
                for (ICommand command : listCommand) {
			System.out.println(i+" "+command.name());	
			System.out.println("-"+command.info());
                        i++;
                }	
		
 
     }}

    
    

